<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
可以跳过来
<%
	/**
		接收参数的方法:request.getParameter();
		注意:getParameter()是接参数操作,getAttribute()接值操作.页面之间一般是参数操作,服务器和页面是接传值操作
	*/
	String username = request.getParameter("username");
	String password = request.getParameter("password");
	String hide = request.getParameter("hide");
	//-----------------------
	/**
		接收参数:复选框都不勾选的时候,数组对象为null,使用数据的时候最好做一个非空判断
	*/
	String[] chis = request.getParameterValues("chi");
	if(chis != null){
		for(int i=0;i<chis.length;i++){
			System.out.println(chis[i]);
		}
	}
	//-----------------------------------
	//注意:单选按钮可以通过数组接值也可以通过单一接值,两种接值方式都可以,推荐使用单一接值
	String[] aihaos = request.getParameterValues("aihao");
	System.out.println(aihaos.length);
	System.out.println(aihaos[0]);
	String aihao = request.getParameter("aihao");
	System.out.println(aihao);
	//------------------------------
	String xuan = request.getParameter("xuan");
	System.out.println(xuan);
	//-------------------------
	String name = request.getParameter("name");
	System.out.println(name);
%>
<%=username %><br>
<%=password %><br>
<%=hide %><br>
</body>
</html>